<?php

namespace IDock\Insurance\ZMBX\Request;

use IDock\Insurance\ZMBX\Request\AllZMBXRequest;
use IDock\Insurance\ZMBX\Response\NonCarProductListResponse;
use IDock\Insurance\ZMBX\ZMBXEnums;
use IDock\Visitor\NonCar\NonCarProductListVisitor;

class NonCarProductListRequest extends AllZMBXRequest
{

    protected $route = 'RideAccidentQuery.do';

    protected $urlTip = '非车产品列表';

    public $requestCode  = 'RideAccidentQuery';

    protected $response = NonCarProductListResponse::class;

    /*** @var NonCarProductListVisitor $visitor */
    protected $visitor;


    public function generate(): array
    {
        $this->setZMBXToken($this->visitor->argc);

        return [
            'motorMainType' => ZMBXEnums::$carKindCode[$this->visitor->carKindCode] ?? '',//客车
            'carUseType' => ZMBXEnums::$causeType[$this->visitor->causeType] ?? '',//家庭自用
            'motorUsageTypeCode' => ZMBXEnums::$useNatureCode[$this->visitor->useNatureCode] ?? '',//非营业
            'province' => '510000',//四川
            'seats' => $this->visitor->seats,
        ];
    }
}
